﻿using GameFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TowerDefence_Zombie.Data;

namespace TowerDefence_Zombie
{
    public class UITreasureFormOpenParam : IReference
    {
        public TreasureBoxData TreasureBoxData
        {
            get;
            private set;
        }

        public UITreasureFormOpenParam()
        {
            TreasureBoxData = null;
        }

        public static UITreasureFormOpenParam Create(TreasureBoxData treasureBoxData)
        {
            UITreasureFormOpenParam uITreasureFormOpenParam = ReferencePool.Acquire<UITreasureFormOpenParam>();
            uITreasureFormOpenParam.TreasureBoxData = treasureBoxData;
            return uITreasureFormOpenParam;
        }


        public void Clear()
        {
            TreasureBoxData = null;
        }
    }
}
